package cn.iocoder.yudao.module.erp.controller.app.purchasemanage.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 采购管理主 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PurchaseManageRespVO {

    @Schema(description = "主键", example = "8135")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "关联采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16819")
    @ExcelProperty("关联采购计划ID")
    private Long planId;

    @Schema(description = "采购计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("采购计划名称")
    private String planName;

    @Schema(description = "采购计划编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("采购计划编号")
    private String purchasePlanNo;

    @Schema(description = "采购预算(万元)", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("采购预算(万元)")
    private BigDecimal purchaseBudget;

    @Schema(description = "采购方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "采购方式", converter = DictConvert.class)
    @DictFormat("purchase_method") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String purchaseMethod;

    @Schema(description = "项目理由", requiredMode = Schema.RequiredMode.REQUIRED, example = "不对")
    @ExcelProperty("项目理由")
    private String projectReason;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "审核状态")
    private Integer status;

}